<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>辅导员页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="easyui/themes/default/easyui.css" type="text/css" />
	<link rel="stylesheet" href="easyui/themes/icon.css" type="text/css" />
	<script src="easyui/jquery-1.7.2.min.js"></script>
	<script src="easyui/jquery.easyui.min.js"></script>
	<script src="easyui/locale/easyui-lang-zh_CN.js"></script>
	<script>
		function addTab(title, href){
		    var tt = $('#main-center');
		    if (tt.tabs('exists', title)){
			    tt.tabs('select', title);
		    } else {
			    if (href){
				    var content = '<iframe scrolling="no" frameborder="0"  src="'+href+'" style="width:100%;height:100%;"></iframe>';
			    } else {
				    var content = '未实现';
			    }
			    tt.tabs('add',{
				    title:title,
				    closable:true,
				    content:content
			    });
		    }
	    }
	</script>
	<style>
		.nav-item{
			text-align:center;
			background:#fff;
			height:80px;
		}
		.nav-item img{
			border:0;
		}
	</style>
  </head>
  
  <body class="easyui-layout">
  	<div region="north" style="height:60px"></div>
	<div region="west" title="导航菜单" split="true" style="width:150px;">
		<div class="easyui-accordion" fit="true" border="false">
			<div title="学生信息管理" selected="true" style="overflow:auto;">
				<div class="nav-item">
					<a href="javascript:addTab('学生资料','mentor/stuinfo.jsp')">
						<img src="images/print_class.png"></img><br/>
						<span>学生资料</span>
					</a>
				</div>
				<div class="nav-item">
					<a href="javascript:addTab('获奖情况')">
						<img src="images/kdmconfig.png"></img><br/>
						<span>获奖情况</span>
					</a>
				</div>
				<div class="nav-item">
					<a href="javascript:addTab('学生证书')">
						<img src="images/package_settings.png"></img><br/>
						<span>学生证书</span>
					</a>
				</div>
			</div>
			<div title="个人信息" style="overflow:auto;">
				<div class="nav-item">
					<a href="javascript:addTab('资料修改')">
						<img src="images/package.png"></img><br/>
						<span>资料修改</span>
					</a>
				</div>
				<div class="nav-item">
					<a href="javascript:addTab('密码修改')">
						<img src="images/kontact.png"></img><br/>
						<span>密码修改</span>
					</a>
				</div>
			</div>
		</div>
	</div>
  	<div region="south" style="height:30px"></div>
	<div region="center">
		<div id="main-center" class="easyui-tabs" fit="true" border="false">
			<div title="首页" style="padding:20px;">
				<img src="images/banner.gif"></img>
				<div style="margin-top:20px;">
				<p>这是学生管理系统的界面，使用easy UI搭建，可以在此基础上完善！ </p>
				</div>
			</div>
		</div>
	</div>
  </body>
</html>
